/**
 * Created by leezhihua on 2018/7/17
 * @flow
 * */
'use strict';

import React, {Component} from 'react';
import {
	StyleSheet,
	View,
	Text,
	Image,
	requireNativeComponent,
} from 'react-native';
import PropTypes from 'prop-types';

let RCTQRCodeView = requireNativeComponent('QRCodeView', QRCodeView);

export default class QRCodeView extends Component {
	constructor(props) {
		super(props);
		this.state = {};
	}

	render() {
		return <RCTQRCodeView {...this.props}/>
	}
}

QRCodeView.propTypes = {
	recogType: PropTypes.string,
	buttonTitle: PropTypes.string,
	tipText: PropTypes.string,  // 设置一个属性
	onScanForResult: PropTypes.func,
	onButtonClick: PropTypes.func,
    enableScreenShot:PropTypes.string, //是否开启扫码时的截图，默认0不开启，1开启；开启后在onScanForResult 中多一个shotData字段
	...View.propTypes,
};


const styles = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: 'white',
	},
})
